// this is the onLoad function of each page
function startPage()
{
	//click so it works with iOS
    document.getElementById( 'box' ).click();
;
	// check to see if the user has completed the course
	if( parent.isCertificateAvailable() )
	{
		document.getElementById( 'certificate' ).display = "block";
		document.getElementById( 'certificate' ).innerHTML = "CERTIFICATE " + parent.getUserName();
	}
	
}